<template>
  <div class="permission-view">
    <div class="header">
      <h2>权限管理</h2>
      <el-button type="primary" @click="handleAdd">添加权限</el-button>
    </div>
    <PermissionTable />
  </div>
</template>

<script setup>
import PermissionTable from '@/components/PermissionTable.vue'

const handleAdd = () => {
  // 添加权限的逻辑
}
</script>

<style scoped>
.permission-view {
  padding: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

h2 {
  margin: 0;
}
</style> 